﻿using System;
using System.Collections.Generic;
using System.Text;

using YouHP.Model;
using YouHP.DALFactory;
using YouHP.Utility;
namespace YouHP.BLL
{
    public class RecommendUserBLL
    {
        #region Singleton
        static RecommendUserBLL _Instance;
        public static RecommendUserBLL Instance
        {
            get
            {
                if (_Instance == null)
                {
                    _Instance = new RecommendUserBLL();
                }
                return _Instance;
            }
        }
        #endregion

        public bool RecommendUserAdd(RecommendUserInfo info)
        {
            return DataAccess.RecommendUserDAL.RecommendUserAdd(info);
        }

        public bool RecommendUserDel(int[] itemIds)
        {
            return DataAccess.RecommendUserDAL.RecommendUserDel(itemIds);
        }
        public bool RecommendUserUpdate(RecommendUserInfo info)
        {
            return DataAccess.RecommendUserDAL.RecommendUserUpdate(info);
        }

        public RecommendUserInfo RecommendUserGet(int id)
        {
            return DataAccess.RecommendUserDAL.RecommendUserGet(id);
        }

        public List<RecommendUserInfo> RecommendUserGetList()
        {
            return DataAccess.RecommendUserDAL.RecommendUserGetList();
        }

        #region 指定活跃用户
        public bool ActiveUserAdd(List <ActiveUserInfo> info)
        {
            return DataAccess.RecommendUserDAL.ActiveUserAdd(info);
        }

        public bool ActiveUserDel(int[] itemIds)
        {
            return DataAccess.RecommendUserDAL.ActiveUserDel(itemIds);
        }
        public bool ActiveUserUpdate(ActiveUserInfo info)
        {
            return DataAccess.RecommendUserDAL.ActiveUserUpdate(info);
        }

        public List<ActiveUserInfo> ActiveUserGetList()
        {
            return DataAccess.RecommendUserDAL.ActiveUserGetList();
        }
        public List<ActiveUserInfo> ActiveUserIntroGetList()
        {
            return DataAccess.RecommendUserDAL.ActiveUserIntroGetList();
        }
        #endregion
        //public List<HyperLinkInfo> GetBulletinInfoList()
       // {
        //    return DataAccess.NewsInfoDAL.GetBullentinList();
       // }

    }
}
